package com.bjsxt.commu3;

public class Test {

    public static void main(String[] args) {

        Product product = new Product();

        Runnable pr = new ProduceRunnable(product);
        Runnable cr = new ConsumeRunnable(product);

        Thread t1 = new Thread(pr);
        Thread t2 = new Thread(cr);

        t1.start();
        t2.start();
    }
}
